package cn.easyutil.project.demo.service.impl;

import cn.easyutil.project.demo.service.UserService;
import cn.easyutil.project.demo.bean.UserBean;
import cn.easyutil.project.demo.mapper.UserMapper;
import cn.easyutil.project.service.BaseMapper;
import cn.easyutil.project.service.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends BaseServiceImpl<UserBean> implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    protected BaseMapper<UserBean> getMainMapper() {
        return userMapper;
    }

    @Override
    public List<UserBean> test(UserBean user) {
        return userMapper.test(user);
    }

}
